// JavaScript Document

function tm_update() {
	pars = '_tm=' + _tm;
	var myAjax = new Ajax.Request(
                                    "/ajax/modules/admin_panel/tm_update.php",
                                    {
                                                method: 'post',
												parameters: pars
									}
								  );


}

function tm_update_init(tm_snapshot_lifetime) {
	// making sure that we will issue request snapshot is expired
	tm_update_interval = tm_snapshot_lifetime - 20;
	new PeriodicalExecuter(tm_update, tm_update_interval);
}
